package rladidxo.basic;

import java.util.Scanner;

public class J05_SukJae39 {
public static void main(String[] args) {
	int sum =0;
	Scanner scanner = new Scanner(System.in);
	int number = scanner.nextInt();
	while(number!=0){
		sum+=number;
	System.out.println(number);
	}
	System.out.println("----------------------------");
	
	int sum1 =0;
	Scanner scanner1 = new Scanner(System.in);
	int number1 = scanner1.nextInt();
	do{
		sum1+=number1;
		System.out.println(number1);
	}
	while(number1!=0);
	System.out.println("----------------------------");

	
}
}
